from django.conf.urls import url

from apps.orders import views

urlpatterns = [
    url(r'^orders/settlement/$', views.OrderSettlementView.as_view(), name='place_order'),  # 下订单
    url(r'^orders/commit/$', views.OrderCommitView.as_view(), name='commit'),  # 提交订单
    url(r'^orders/success/$', views.OrderSuccessView.as_view(), name='success'),  # 提交订单成功
    url(r'^orders/info/(?P<page_num>\d+)/$', views.UserOrderInfoView.as_view(), name='my_orders'),  # 我的订单
    url(r'^orders/comment/$', views.OrderCommentView.as_view(), name='order_comment'),  # 订单商品评价
]
